package com.tanhua.domain.db;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageResult<T> implements Serializable {
    private Integer counts;//总记录数
    private Integer pagesize;//每页显示条数
    private Integer pages;//总页数
    private Integer page;//当前页码
    private List<T> items= Collections.emptyList();
}
